/**
 * <p>Copyright (c) 2017 深圳市鹏途交通科技有限公司 				</p>
 * <p>		    All right reserved. 		     			</p>
 * <p>项目名称 ：深圳公路信息资源整合及国省检日常化监管管理        				</p>
 * <p>创建者 ：詹春贤 										</p>
 * <p>描   述  ：路政管理 - 基础建设 - 法律法规宣传记录 			</p>
 * <p>最后修改 ：$: 2017年9月6日-下午2:34:20 v 1.0.0	 Administrator   $   </p>
 * 
*/

package com.pengtu.gsj.service.impl.lzgl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.dao.lzgl.LawsDisseNoteDao;
import com.pengtu.gsj.entity.lzgl.LawsDisseNote;
import com.pengtu.gsj.service.lzgl.LawsDisseNoteService;

/**
 * 
 * LawsDisseNoteServiceImpl
 * 
 * 2017年9月6日 下午2:34:20
 * 
 * @version 1.0.0
 * 
 */
@Service
@Transactional
public class LawsDisseNoteServiceImpl implements LawsDisseNoteService {

	@Autowired
	private LawsDisseNoteDao lawDisseNoteDao;

	@Override
	public List<LawsDisseNote> getLawsDisseNotes(QueryFilter queryFilter) {
		return lawDisseNoteDao.find(queryFilter);
	}

	@Override
	public Page<LawsDisseNote> findLawsDisseNote(Page<LawsDisseNote> page, QueryFilter queryFilter) {
		return lawDisseNoteDao.findPage(page, queryFilter);
	}

	@Override
	public LawsDisseNote getLawsDisseNote(String id) {
		return lawDisseNoteDao.get(id);
	}

	@Override
	public void saveLawsDisseNote(LawsDisseNote lawDisseNote) {
		lawDisseNoteDao.save(lawDisseNote);
	}

	@Override
	public void delateLawsDisseNote(LawsDisseNote lawDisseNote) {
		lawDisseNoteDao.delete(lawDisseNote);

	}

	@Override
	public Boolean checkServiceType(String serviceType, String id) {
		return lawDisseNoteDao.checkProperty("serviceType", serviceType, id);
	}
}
